package com.wangzh.time;

import java.util.Calendar;
import java.util.Date;

public class CalendarDemo {
    public static void main(String[] args) {
        Calendar instance = Calendar.getInstance();
        Date time = instance.getTime();
        long timeInMillis = instance.getTimeInMillis();
        int i = instance.get(1);
    }
}
